#include "swagme.h"

#ifndef EFFECT_H
#define EFFECT_H

/**
	@author Rob and Jeff <rob4@copper>
*/
class Effect{
public:
    Effect(const string &filename);
    ~Effect();
    SDL_Surface *getSurface();
    const int getFrameCounter() const;
    const int getPlayCounter() const;
    void setFrameCounter(const int f);
    void nextFrame();
    void animNextFrame();
private:
    static const int FrameCount;
    static const int TicksPerFrame;
    int frameCounter;
    int playCounter;
    SDL_Surface *mpSurface;
    int frameTime;
    int lastFrameTime;
};

#endif
